package com.wuhunyu;

import java.io.Serializable;

/**
 * 用户实体类
 *
 * @author gongzhiqiang
 * @version 1.0
 * @date 2021/11/3 10:28
 */

public class User implements Serializable {

    private Long userId;

    private String name;

    public User() {
    }

    public User(Long userId, String name) {
        this.userId = userId;
        this.name = name;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", name='" + name + '\'' +
                '}';
    }
}
